<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="baidu-site-verification" content="code-YdaKdlJrFZ" />
    <meta name="keywords" content="IPv6地址库,IP地址库,IPv6地址数据库,归属地查询,IPv6归属地,三大运营商,IPv6,IPv6地址,IP,IP库">
    <meta name="description" content="IPv6,IPv6查询,运营商IPv6地址分配,IPv6数据库,IPv6地址,IPv6地址数据库,归属地查询,IPv6归属地">
    <title>IPv6查询</title>
    <style>
    a {
        color: #0fd59d;
    }
    .container {
        max-width: 1400px;
        min-width: 360px;
        margin: 0 auto;
        padding-left: 0;
        padding-right: 0;
    }
    .bncx-top {
        margin-top: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .bncx-top .bncx-top-logo {
        position: relative;
        width: 35px;
        height: 35px;
        border-radius: 6px;
        background-color: #0fd59d;
    }

    .bncx-top .bncx-top-logo i {
        font-size: 20px;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        color: #ffffff;
    }

    .bncx-top .bncx-top-tit {
        font-size: 20px;
        font-weight: bold;
        color: #333333;
        margin: 0 20px;
    }

    .bncx-top .bncx-top-box {
        position: relative;
        width: 60%;
    }

    .bncx-top .bncx-top-box .bncx-top-box-val {
        border: 1px solid #0fd59d;
        width: 90%;
        line-height: 40px;
        padding-left: 15px;
        border-radius: 6px;
    }

    input.bncx-top-box-val[type=text]:focus{
        outline: -webkit-focus-ring-color auto 0px;
    }

    .bncx-top .bncx-top-box .bncx-top-box-btn {
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: 100px;
        background-color: #0fd59d;
        border: none;
        outline: none;
        color: #ffffff;
        border-top-right-radius: 6px;
        border-bottom-right-radius: 6px;
        cursor: pointer;
    }

    .bncx-recent {
        margin-top: 10px;
        font-size: 16px;
        color: #999999;
    }
    .bncx-recent .bncx-recent-left, .bncx-recent .bncx-recent-right{
       display: inline-block;
        vertical-align: top;
    }
    .bncx-recent .bncx-recent-right{
        width: calc(100% - 96px);
    }

    .bncx-recent a {
        font-size: 16px;
        color: #999999;
    }
    .bncx-search-resoult{
        margin-top: 35px;
    }

    .bncx-search-resoult table {
        border: 1px solid #eee;
        border-bottom: 0;
    }

    .bncx-search-resoult table thead tr th {
        line-height: 40px;
        text-align: center;
        border-bottom: 1px solid #eee;
    }

    .bncx-search-resoult table tbody {
        display: flex;
        flex-wrap: wrap;
    }

    .bncx-search-resoult table tbody tr {
        width: 50%;
        border: 1px solid #ddd;
        display: flex;
        border-top: 0;
        border-left: 0;
        border-right: 0;
    }

    .bncx-search-resoult table tbody tr td {
        padding: 0 10px;
        text-align: center;
        line-height: 40px;
        background-color: #F8F8F8;
        width: 20%;
        flex: 1;
    }

    .bncx-search-resoult table tbody tr td:first-child {
        border-right: 1px solid #ddd;
        font-size: 14px;
        color: #999999;
    }
    .bncx-search-resoult table tbody tr td:last-child {
        text-align: center;
        line-height: 40px;
        background-color: #ffffff;
        font-size: 14px;
        flex: 3;
        border-right: 0;
    }
    .bncx-search-resoult table tbody tr.other-info{
        width: 100%;
    }

    .bncx-search-resoult table tbody tr.other-info td:first-child{
        flex: none;
        width: 13.3%;
    }

    .bncx-search-resoult table tbody tr.force-update{
        width: 100%;
        text-align: center;
    }

    .custom-tab >li::after{
        display: block;
    }
    @media (max-width: 540px) {
        .bncx-top-logo{
            display: none;
        }
        .bncx-top-tit{
            display: none;
        }
        .bncx-top .bncx-top-box{
            width: 98%;
        }
        .bncx-search-resoult table tbody tr{
            width: 98%;
        }
    }
    </style>
</head>

<body>
    <div class="container clear-both t-big-margin" style="min-height: 67%;">
        <div class="bncx-top-wrapper">
            <div class="bncx-top">
                <div class="bncx-top-logo">
                    <span style="display: inline-block; margin-top: -2px;padding: 9px;color:#fff;">查</span>
                    <!-- <i class="iconfont iconimagesearch"></i> -->
                </div>
                <div class="bncx-top-tit">IPv6查询</div>
                <div class="bncx-top-box">
                    <input class="bncx-top-box-val" type="text" placeholder="请输入IPv6地址" id="needtext">
                    <!-- <input class="bncx-top-box-btn" type="button" value="查询"> -->
                    <button class="bncx-top-box-btn">查询</button>
                </div>
            </div>
        </div>


        <div class="bncx-search-resoult">
            <table style="width: 100%">
                <thead>
                    <tr>
                        <th>IP地址查询</th>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td>IP全名</td>
                        <td name="ipfull"></td>
                    </tr>
                    <tr>
                        <td>运营商</td>
                        <td name="isp"></td>
                    </tr>
                    <tr>
                        <td>省份</td>
                        <td name="province"></td>
                    </tr>
                    <tr>
                        <td>标识</td>
                        <td name="ipaddr"></td>
                    </tr>
                    <tr>
                        <td>段位</td>
                        <td name="range"></td>
                    </tr>
                    <tr>
                        <td></td>
                        <td name="msg" style="color:#f00;"></td>
                    </tr>
                    <tr class="force-update">
                        <td>
                            <a href="i6.html">全国三大运营商IPv6地址分配表</a> | 
                            <a href="edu.html">全国高校教网育列表</a> | 
                            <a href="company.html">全国企业列表</a> | 
                            <a href="https://www.kancloud.cn/linzening/mydevops/2210994">区县地址库Excel下载和经纬度</a> | 
                            <a href="dns.html">DNS查询</a> | 
                            <a href="https://comeround.cn/article/ipv6-address.html">文档地址</a>
                        </td>
                    </tr>
                    <tr class="force-update">
                        <td>
                            <span id="siteinfo" style="color: #eee;">QQ联系我1198551705</span>
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
    </div>
</body>
<script type="text/javascript" src="https://mirror.fe80.cn/jquery/2.2.4/jquery.min.js"></script>
<script type="text/javascript" src="./assets/ipv6solution.js"></script>
<script>
    $(document).ready(function () {
        $("button").click(function () {
            $("td[name='msg']").html("");
            var data = {
                "field":{
                    "ip": $("#needtext").val().trim().replace(/\//,'')
                }
            };
            console.log(data.field.ip);
            var ipv6_regex = /(([\da-fA-F]{1,4})?:){1,7}[\da-fA-F]{1,4}/;
            if (!data.field.ip.match(ipv6_regex)) {
                $("td[name='msg']").html("IP格式不正确");
                return false;
            }
            var ifs = tool.full(data.field.ip);
            $("td[name='ipfull']").html(ifs);
            var mepu = window.location.protocol + "//i.fe80.cn/portal/inet";
            $.post(mepu, { ip: data.field.ip }, function (res) {
                if (res.state != undefined && res.state == 0) {
                    $("td[name='msg']").html(res.msg);
                    return false;
                } else {
                    $("td[name='isp']").html(res.data.addr[1]);
                    $("td[name='ipaddr']").html(res.data.disp);
                    $("td[name='province']").html(res.data.addr[0]);
                    $("td[name='range']").html(res.data.start + '-' + res.data.end);
                }
            }, 'json').error(function (e) {
                $("td[name='msg']").html(e);
            });
            return false;
        });
    });
</script>
<script type="text/javascript" src="https://i.fe80.cn/ip"></script>
<script>
    setTimeout(function(){
        if(your_ip != undefined && your_ip.length > 0){
            $("#siteinfo").html('您的IP为 ' + your_ip);
            $("#siteinfo").css('color','#666');
            $("#siteinfo").css('cursor','pointer');
            $("#siteinfo").on('click',function(){
                $("#needtext").val(your_ip);
            });
        }
    },1200);
</script>
</html>